<!--{template common/header}-->

	<!-- JiaThis Button BEGIN -->
	<script type="text/javascript" src="http://v2.jiathis.com/code/jiathis_r.js?move=0&amp;btn=r5.gif" charset="utf-8"></script>
	<!-- JiaThis Button END -->
	
<div class="bm_c">
	<div class="tbmu" id="pic_block">
		<div class="y">
			<a href="javascript:;" onclick="imageRotate('pic', 1)"><img class="vm" src="{STATICURL}image/common/rleft.gif" /></a>
			<a href="javascript:;" onclick="imageRotate('pic', 2)"><img class="vm" src="{STATICURL}image/common/rright.gif" /></a><span class="pipe">|</span>
			<a href="expert.php?mod=viewsubject&topicid=2&picid=$preid&page=$page#pic_block">{lang previous_pic}</a><span class="pipe">|</span>
			<a href="expert.php?mod=viewsubject&topicid=2&picid=$nextid&page=$page#pic_block" id="nextlink">{lang next_pic}</a>
		</div>
		<a href="expert.php">&laquo; {lang return_expert}</a>
		<span class="pipe">|</span>{lang current_pic}&nbsp;
		<span class="xg1"> &nbsp; {$friendsname[$value[friend]]}</span>
	</div>
				
	<div class="pic">
		<div id="photo_pic" class="c">
			<div class="pic_lb1 cl">
					<div class="albim_pic_title cl">
						<h1>{$pic[article_title]}{$paragraph_title}</h1>
						<br/>
						<h2 style="margin: 0px auto; width: 80%;">{$pic[desc]}</h2>
					</div>
					<a href="expert.php?mod=viewsubject&topicid=2&picid=$nextid#pic_block"><img src="$pic[pic]" id="pic" alt="" /></a>
					<script type="text/javascript">
						function createElem(e){
							var obj = document.createElement(e);
							obj.style.position = 'absolute';
							obj.style.zIndex = '1';
							obj.style.cursor = 'pointer';
							obj.onmouseout = function(){ this.style.background = 'none';}
							return obj;
						}
						function viewPhoto(){
							var pager = createElem('div');
							var pre = createElem('div');
							var next = createElem('div');
							var cont = $('photo_pic');
							var tar = $('pic');
							var space = 0;
							var w = tar.width/2;
							if(!!window.ActiveXObject && !window.XMLHttpRequest){
								space = -(cont.offsetWidth - tar.width)/2;
							}
							var objpos = fetchOffset(tar);
		
							pager.style.position = 'absolute';
							pager.style.top = '0';
							pager.style.left = objpos['left'] + 'px';
							pager.style.top = objpos['top'] + 'px';
							pager.style.width = tar.width + 'px';
							pager.style.height = tar.height + 'px';
							pre.style.left = 0;
							next.style.right = 0;
							pre.style.width = next.style.width = w + 'px';
							pre.style.height = next.style.height = tar.height + 'px';
							pre.innerHTML = next.innerHTML = '<img src="{IMGDIR}/emp.gif" width="' + w + '" height="' + tar.height + '" />';
		
							pre.onmouseover = function(){ this.style.background = 'url({IMGDIR}/pic-prev.png) no-repeat 0 100px'; }
							pre.onclick = function(){ window.location = 'expert.php?mod=viewsubject&topicid=2&picid=$preid#pic_block'; }
		
							next.onmouseover = function(){ this.style.background = 'url({IMGDIR}/pic-next.png) no-repeat 100% 100px'; }
							next.onclick = function(){ window.location = 'expert.php?mod=viewsubject&topicid=2&picid=$nextid#pic_block'; }
		
							//cont.style.position = 'relative';
							cont.appendChild(pager);
							pager.appendChild(pre);
							pager.appendChild(next);
						}
						$('pic').onload = function(){
							viewPhoto();
						}
					</script>							
				</div>
			</div>
						
			<div class="pns mlnv vm mtm cl">
				<a href="expert.php?mod=viewsubject&topicid=2&page=$prepage#pic_block" class="btn z" title="{lang previous_pic}"><img src="{STATICURL}image/common/pic_nv_prev.gif" alt="{lang previous_pic}"/></a>
				<!--{loop $pic_thumb_list $value}-->
					<div class="z">
						<a href="expert.php?mod=viewsubject&topicid=2&picid=$value[picid]&page=$page#pic_block"><img alt="$value[title]" src="$value[thumb]"{if $value[picid]==$picid} class="a"{/if} /></a>
						<br/>
						<span>{$value[week_name]}</span>
					</div>
				<!--{/loop}-->
				<a href="expert.php?mod=viewsubject&topicid=2&page=$nextpage#pic_block" class="btn z" title="{lang next_pic}"><img src="{STATICURL}image/common/pic_nv_next.gif" alt="{lang next_pic}"/></a>
			</div>
	</div>
</div>
					

<!--{template common/footer}-->